package com.ruoyi.reservations.mapper;

import java.util.List;
import com.ruoyi.reservations.domain.Reservations;

/**
 * 图书预约Mapper接口
 * 
 * @author anyunyi
 * @date 2025-05-28
 */
public interface ReservationsMapper 
{
    /**
     * 查询图书预约
     * 
     * @param id 图书预约主键
     * @return 图书预约
     */
    public Reservations selectReservationsById(Long id);

    /**
     * 查询图书预约列表
     * 
     * @param reservations 图书预约
     * @return 图书预约集合
     */
    public List<Reservations> selectReservationsList(Reservations reservations);

    /**
     * 新增图书预约
     * 
     * @param reservations 图书预约
     * @return 结果
     */
    public int insertReservations(Reservations reservations);

    /**
     * 修改图书预约
     * 
     * @param reservations 图书预约
     * @return 结果
     */
    public int updateReservations(Reservations reservations);

    /**
     * 删除图书预约
     * 
     * @param id 图书预约主键
     * @return 结果
     */
    public int deleteReservationsById(Long id);

    /**
     * 批量删除图书预约
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReservationsByIds(Long[] ids);
}
